package com.bright.tactiviti.activiti.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bright.tactiviti.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_act_process")
@ApiModel(value = "流程定义")
public class ActProcess extends BaseEntity {

    @ApiModelProperty(value = "流程名称")
    private String name;

    @ApiModelProperty("流程标识名称")
    @TableField(value = "process_key")
    private String processKey;

    @ApiModelProperty("版本")
    private Integer version;

    @ApiModelProperty("部署id")
    @TableField("deployment_id")
    private String deploymentId;

    @ApiModelProperty("分类id")
    @TableField("category_id")
    private String categoryId;

    @ApiModelProperty(value = "xml文件名")
    @TableField("xml_name")
    private String xmlName;

    @ApiModelProperty(value = "流程图片名")
    @TableField("diagram_name")
    private String diagramName;

    @ApiModelProperty(value = "描述/备注")
    private String description;

    @ApiModelProperty(value = "最新版本")
    private Boolean latest;

    @ApiModelProperty(value = "流程状态 部署后默认1激活")
    private Integer status = 1;
}
